﻿@model NC.Data.Post
@{
    ViewBag.Title = @Model.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="fb-root">
</div>

<div>
    <div class="NcTitleBar">
        <h4>@Model.Title</h4>
    </div>
    <div class="Ncshare">
        <div class="fb-like" id="fb" data-href="http://www.nepalicorner.com/" data-layout="standard" data-action="like" 
        data-show-faces="true" data-share="true"></div>
    </div>
</div>

<p class="Ncdescription">@Model.Description
<br />
<dl>
    <dt>
    Posted Date: 
    </dt> 
    <dd>
        @Model.PostDate.ToString("dd-MMM-yyyy")
    </dd>
    <dt>
        Posted By:
    </dt>
    <dd>
        @Model.CreatorName
    </dd>
    @if (!@Model.ContactPhone.IsEmpty() && @Model.ContactPhone != null)
    {
        <dt>Phone: </dt>
        <dd>@Model.ContactPhone</dd>
    }
    @if (!Model.ShowEmailInPost)
    {
        <dt>Email Address:</dt>
        <dd>@Model.ContactEmail</dd>
    }
</dl>
<input style="visibility: hidden;" id="postCreatorEmail" value="@Model.ContactEmail" />
<div class="NCborder"></div>
<div style="background:#f9f8f8;padding:20px" id="ReplySection">
    <p class="NcTitleBar" >Respond to @Model.CreatorName </p>
    <hr/>
    @Html.Partial("_replyToAPost")
</div>
